package com.lot.ws.dto;

import java.util.List;


public class ReadingRequest {

	List<ReadingDetails> readings;

	public List<ReadingDetails> getReadings() {
		return readings;
	}

	public void setReadings(List<ReadingDetails> readings) {
		this.readings = readings;
	}
	
	
	public void setReading(ReadingDetails readings) {
		this.readings.add(readings);
	}

	public ReadingRequest(List<ReadingDetails> readings) {
		super();
		this.readings = readings;
	}


	public ReadingRequest() {
		super();
	}

	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer( "ReadingRequest [readings:");
		for(ReadingDetails r:readings){
			sb.append("\n").append(r);
		}
		sb.append( "]");
		 
		 return sb.toString();
	}
	
	
	
}
